<?php foreach ($this->subnavi as $x): ?>
     <p>
     <a href="<?php
 
     echo $this->url(array('controller' => $x['kontroler'] ,
         'action' => $x['akcja'])); ?>"><?php echo $x['tytul'] ?></a>
    </p>
 <?php endforeach; ?>